package com.easy.modules.sysmgr.entity;

import java.sql.Clob;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * 日程
 * @author Administrator
 *
 */
@Entity
@Table(name = "EASY_PERSON_SCHEDULE")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ScheduleEntity {
	
	private String id ;				//唯一标示

	private Date start_date ;		//日程开始日期
	
	private Date end_date ;			//日程结束日期
	
	private Clob text ;				//日程内容
	
	private Date created ;			//创建日期

	private UserEntity user ;		//用户
	
	
	@Id
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "USER_ID")
	public UserEntity getUser() {
		return user;
	}

	public void setUser(UserEntity user) {
		this.user = user;
	}

	public Date getStart_date() {
		return start_date;
	}

	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}

	public Date getEnd_date() {
		return end_date;
	}

	public void setEnd_date(Date end_date) {
		this.end_date = end_date;
	}

	public Clob getText() {
		return text;
	}

	public void setText(Clob text) {
		this.text = text;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}
	
}
